﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MODEL
{
    public partial class qgzx_department
    {
        public qgzx_department ToPOCO()
        {
            qgzx_department poco = new qgzx_department()
            {
                Id = this.Id,
                Name = this.Name,
                Remark = this.Remark,
                PermissionId = this.PermissionId
            };
            return poco;
        }

        #region 1.0 生成 TViewModel 实体对象 +ToViewModel
        /// <summary>
        /// 生成 很纯洁的 实体对象
        /// </summary>
        /// <returns></returns>
        public ViewModel.Department ToViewModel()
        {
            ViewModel.Department poco = new ViewModel.Department()
            {
                Id = this.Id,
                Name = this.Name,
                Remark = this.Remark,
                PermissionId = this.PermissionId

            };
            return poco;
        }
        #endregion
    }
}
